<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="<?php echo Yii::app()->url->theme; ?>script/jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->url->theme; ?>script/main.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->url->theme; ?>script/ajax.js"></script>

    <title>Magic Admin. Advanced, Beautiful and Customizable Admin Template.</title>

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->url->theme; ?>css/reset.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->url->theme; ?>css/grid.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->url->theme; ?>css/styles.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->url->theme; ?>css/jquery.wysiwyg.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->url->theme; ?>css/tablesorter.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->url->theme; ?>css/thickbox.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->url->theme; ?>css/theme-blue.css" media="screen" />
    <?php  //Yii::app()->bootstrap->register(); ?>

</head>

<body>
<div id="notification-message"></div>

<div id="main-wrapper">

    <div id="header">
        <div id="header-status">
            <div class="container_12">
                <div class="grid_8">
                    &nbsp;
                </div>
                <div class="grid_4 white">
                    <a href="<?php echo Yii::app()->createAbsoluteUrl('account/index/logout'); ?>">
                        <?php echo Yii::t('main','logout'); ?> (<?php echo Yii::app()->user->name; ?>)
                    </a>
                </div>
            </div>
            <div style="clear:both;"></div>
        </div>

        <?php $this->renderPartial('admin.views.common.header._headerMain',array(
            'hederMainLinks'=>$this->hederMainLinks,
        )); ?>

        <div style="clear: both;"></div>

        <?php $this->renderPartial('admin.views.common.header._subnav',array(
            'subnavLinks'=>$this->subnavLinks,
        )); ?>

    </div>

    <div class="container_12">
        <?php if($this->categoryImage): ?>
            <div class="category-image">
                <img src="<?php echo $this->categoryImage->img; ?>" />
            </div>
        <?php endif; ?>

        <div style="clear: both;"></div>

        <div class="content">
            <?php echo $content; ?>
        </div>

        <div style="clear:both;"></div>
    </div>


    <div id="footer">
        <div class="container_12">
            <div class="grid_12">
                <!-- You can change the copyright line for your own -->
                <p>&copy; 2010. <a href="http://www.templatescreme" title="Visit For More Free Website Templates">Free Website Templates</a></p>
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>

</div> <!-- End #main-wrapper -->

<div class="popup__overlay"></div>
<div id="new-item" class="popup"></div>

</body>
</html>